package com.mycompany.inventory.pojo;

import org.zkoss.bind.annotation.DependsOn;

public class Contact {
	
	private String id;
	private String name;
	private String phone;
	private String fax;
	private String email;
	private String website;
		
	public Contact() {
		name = "";
		phone = "";
		fax = "";
		email = "";
		website = "";
	}
	
	public Contact(String id, String na, String ph, String fa, String em, String we) {
		name = na;
		phone = ph;
		fax = fa;
		email = em;
		website = we;
		this.id = id;
	}
	
	public void clear(){
		name = "";
		phone = "";
		fax = "";
		email = "";
		website = "";
		id = "";
	}
	
	public void copyValue(Contact con){
		id = con.getId();
		name = con.getName();
		phone = con.getPhone();
		fax = con.getFax();
		email = con.getEmail();
		website = con.getWebsite();
	}
	
	public String getName() {
		return name;
	}

	public void setName(String para) {
		 name = para;
	}
	
	public String getPhone() {
		return phone;
	}

	public void setPhone(String para) {
		phone = para;
	}
	
	public String getFax() {
		return fax;
	}

	public void setFax(String para) {
		fax = para;
	}
	
	public String getEmail() {
		return email;
	}

	public void setEmail(String para) {
		email = para;
	}
	
	public String getWebsite() {
		return website;
	}

	public void setWebsite(String para) {
		website = para;
	}
	
	@DependsOn({ "name", "phone" , "fax" , "email" , "website"})
	public String getFullContact() {
		return getName() + " " + getPhone() + " " + getFax() + " " + getEmail() + " " + getWebsite();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
}